using Microsoft.Data.SqlClient;

namespace DbBackupAssist.Test
{
    public class Tests
    {
        [SetUp]
        public void Setup()
        {
        }

        [Test]
        public void TestOpenRemoteXpCmd()
        {
            var connectionString = "server=DESKTOP-PAJJSMK\\SQLEXPRESS;uid=test;pwd=test123;TrustServerCertificate=True;";

            var connection = new SqlConnection(connectionString);
            connection.Open();

            Assert.True(connection.State == System.Data.ConnectionState.Open);

            connection.Close();
        }
    }
}